import axios from "../utils/request";


//首页统计
export interface HomeStatisticsindexData {
    subjectId: number; //学科id

  }
  export function HomeStatisticsindex(params: HomeStatisticsindexData) {
    return axios.post("/api/HomeStatistics/index", params);
  }
//开始练习
  export interface HomeStatisticspracticeTodayData {
    subjectid: number; //学科id
    klid: number; //知识点id

  }
  export function HomeStatisticspracticeToday(params: HomeStatisticspracticeTodayData) {
    return axios.post("/api/HomeStatistics/practiceToday", params);
  }

  
  //获取当前用户是否绑定课程
  export interface CourseListData {
    sid: number;
    page:number;
    limit:number;
  }
  export function getCourseList(params: CourseListData) {
    return axios.post("api/cat/getCourseList",params);
  }

  //创建课程
  export interface createCourseData {
    type: string;
    subjectID: string;
  }
  export function createCourse(params: createCourseData) {
    return axios.post("api/User/createCourse",params);
  }